package com.recSys.inter;

import com.recSys.model.Product;
import com.recSys.model.ProductInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ProductMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Product record);

	int insertSelective(Product record);	

	Product selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Product record);

	int updateByPrimaryKey(Product record);

	List<Product> selectByIDList(@Param("IDList") List<Integer> IDList);

	ProductInfo selectDetailByPrimaryKey(Integer id);

	List<ProductInfo> selectListPageByOrgID(Map<String, Object> map);

	List<ProductInfo> selectAllByOrgID(Map<String, Object> map);

	List<ProductInfo> selectListPageByProName(Map<String, Object> map);

	List<ProductInfo> selectAllByProName(Map<String, Object> map);

    List <ProductInfo> selectListPageByCatalogID(Map<String, Object> map);

    List <ProductInfo> selectTotal(Map<String, Object> map);

    List<ProductInfo>  selectListByRLevel(Map<String, Object> map);

    List<ProductInfo>  selectByIdentifyState(Map<String, Object> map);

    Product selectByProName(@Param("orgID") int orgID, @Param("proName") String proName);

    List<ProductInfo>  selectSimilarList(Map<String, Object> map);
}